<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');

$parentid = $menu_db->insert(array(
  'name'=>'guestbook',
  'parentid'=>821,
  'm'=>'guestbook',
  'c'=>'guestbook_admin',
  'a'=>'init',
  'data'=>'',
  'listorder'=>0,
  'display'=>'1'
), true);
// 已回复留言
$menu_db->insert(array(
  'name'=>'replyed_list','parentid'=>$parentid,'m'=>'guestbook','c'=>'guestbook_admin','a'=>'replyed_list',
  'data'=>'','listorder'=>0,'display'=>'1'
));
// 编辑留言
$menu_db->insert(array(
  'name'=>'edit',
  'parentid'=>$parentid,
  'm'=>'guestbook',
  'c'=>'guestbook_admin',
  'a'=>'edit',
  'data'=>'',
  'listorder'=>0,
  'display'=>'0'
));
// 回复留言
$menu_db->insert(array(
  'name'=>'reply',
  'parentid'=>$parentid,
  'm'=>'guestbook',
  'c'=>'guestbook_admin',
  'a'=>'reply',
  'data'=>'s=1',
  'listorder'=>0,
  'display'=>'0'
));
// 删除留言
$menu_db->insert(array(
  'name'=>'delete',
  'parentid'=>$parentid,
  'm'=>'guestbook',
  'c'=>'guestbook_admin',
  'a'=>'delete',
  'data'=>'',
  'listorder'=>0,
  'display'=>'0'
));
// 审核
$menu_db->insert(array(
  'name'=>'passed',
  'parentid'=>$parentid,
  'm'=>'guestbook',
  'c'=>'guestbook_admin',
  'a'=>'passed',
  'data'=>'',
  'listorder'=>0,
  'display'=>'0'
));
// 取消审核
$menu_db->insert(array(
  'name'=>'cancel_passed',
  'parentid'=>$parentid,
  'm'=>'guestbook',
  'c'=>'guestbook_admin',
  'a'=>'cancel_passed',
  'data'=>'',
  'listorder'=>0,
  'display'=>'0'
));
// 排序
$menu_db->insert(array(
  'name'=>'listorder',
  'parentid'=>$parentid,
  'm'=>'guestbook',
  'c'=>'guestbook_admin',
  'a'=>'listorder',
  'data'=>'',
  'listorder'=>0,
  'display'=>'0'
));

$language = array(
  'guestbook'=>'留言板',
  'replyed_list' => '已回复留言',
  'edit' => '编辑留言',
  'reply' => '回复留言',
  'delete' => '删除留言',
  'passed' => '审核',
  'cancel_passed' => '取消审核',
  'listorder' => '排序'
);
?>
